package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 评论点赞表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "comment_like")
public class CommentLike implements Serializable {
    
    private ObjectId id;
    private ObjectId publishId;    //动态id
    private ObjectId commentId;    //评论id
    private Integer commentType;   //评论类型，4-点赞
    private Long userId;           //评论人
    private Long created; 		   //发表时间
}